package org.easystub.dbstub;

import org.hsqldb.jdbc.JDBCDataSource;

import javax.sql.DataSource;

public final class DataSourceFactory {

    public static final String DB_URL = "jdbc:hsqldb:mem:dbstub";

    private DataSourceFactory() {
    }

    public static DataSource getDataSource() {
        JDBCDataSource ds = new JDBCDataSource();
        ds.setDatabase(DB_URL);
        ds.setUser("sa");
        ds.setPassword("");
        return ds;
    }

}
